<?php
session_start();

include $admin_pre_folder.'../settings.php';
include $admin_pre_folder.'settings/settings.php';
include $admin_pre_folder.'settings/modules.php';
include $admin_pre_folder.'settings/folders.php';
include $admin_pre_folder.'settings/help_text.php';

include $admin_pre_folder.'../class/mysql.php';
$sql = new mysql_class($sql_debug);

include $admin_pre_folder.'class/user.php';
$user = new user_class();

include $admin_pre_folder.'class/theme.php';
$theme = new admin_theme();

//include $admin_pre_folder.'class/help.php';
//$help = new help_class();

// jogosultság kezelés
if ($user->get_user_admin()!=TRUE && !defined("ADMINLOGIN"))
{
	header("Location: ".$admin_pre_folder."login.php");
}

// query string
if ($_SERVER['QUERY_STRING']<>"")
{
	$query_string = explode(".", $sql->escape($_SERVER['QUERY_STRING']));
}
else
{
	$query_string = array("index");
}

// form értékeinek összerakésa
if ($_SESSION['form']<>"")
{
	$form_value = $_SESSION['form'];
	$_SESSION['form'] = "";
} 

// végeztünk az inicailizálással úgyhogy jöhetnek a plusz dolgok


// theme specifikus beállítások beolvasása
include 'theme/'.ADMIN_THEME.'/functions.php';

?>